(function(){
    var a=window.UEDITOR_HOME_URL;
    window.UEDITOR_CONFIG={
        UEDITOR_HOME_URL:a,imageUrl:a+"php/imageUp.php",
        imagePath:a+"php/",
        scrawlUrl:a+"php/scrawlUp.php",
        scrawlPath:a+"php/",
        fileUrl:a+"php/fileUp.php",
        filePath:a+"php/",
        catcherUrl:a+"php/getRemoteImage.php",
        catcherPath:a+"php/",
        imageManagerUrl:a+"php/imageManager.php",
        imageManagerPath:a+"php/",
        snapscreenHost:location.hostname,
        snapscreenServerUrl:a+"php/imageUp.php",
        snapscreenPath:a+"php/",
        snapscreenServerPort:location.port,
        wordImageUrl:a+"php/imageUp.php",
        wordImagePath:a+"php/",
        getMovieUrl:a+"php/getMovie.php",
        videoUrl:a+"php/fileUp.php",
        videoPath:a+"php/",
        toolbars:[["source","selectall","bold","underline","strikethrough","fontsize",
            "subscript","superscript","justifyleft","justifycenter","justifyright","justifyjustify","paragraph",
            "fontfamily","horizontal","insertunorderedlist","insertorderedlist","insertvideo",
            "emotion","insertcode","insertimage","unlink","link","forecolor","lineheight","preview","fullscreen","|"]]};
        function e(f,g){return c(f||self.document.URL||self.location.href,g||b())}function b(){var f=document.getElementsByTagName("script");return f[f.length-1].src}function c(f,g){var h=g;if(/^(\/|\\\\)/.test(g)){h=/^.+?\w(\/|\\\\)/.exec(f)[0]+g.replace(/^(\/|\\\\)/,"")}else{if(!/^[a-z]+:/i.test(g)){f=f.split("#")[0].split("?")[0].replace(/[^\\\/]+$/,"");h=f+""+g}}return d(h)}function d(h){var i=/^[a-z]+:\/\//.exec(h)[0],g=null,f=[];h=h.replace(i,"").split("?")[0].split("#")[0];h=h.replace(/\\/g,"/").split(/\//);h[h.length-1]="";while(h.length){if((g=h.shift())===".."){f.pop()}else{if(g!=="."){f.push(g)}}}return i+f.join("/")}window.UE={getUEBasePath:e}})();